package cn.modoumama.common.tools.cipher.sha;

import cn.modoumama.common.tools.cipher.Cipher;

import java.util.Map;

/**
 * 类描述：SHA256加密<br>
 * 创建人：邓强   <br>
 * 创建时间：2018/5/2/002 18:18<br>
 *
 * @version V1.0
 */
public class SHA256 {
    public static Cipher cipher = new Cipher("SHA-256");

    public static String encode(String input) {
        return cipher.encode(input);
    }

    public static String encode(String input,String charsetName) {
        return cipher.encode(input,charsetName);
    }

    public static String signature(Map<String, String> params, String secret) {
        return cipher.signature(params,secret);
    }
}
